package com.tianlh.service.design_pattern.Chain_of_Responsibility;

/**
 * Created by wb-tianlihui on 2017/11/15.
 */
public class DeptManageHanler extends Handler {

    @Override
    void operator(Client client) {
        if(0.5 < client.getLeaveDays() && client.getLeaveDays() <= 3){
            System.out.println("部门经理处理该逻辑");
        }else{
            if(null != getHandler()){
                getHandler().operator(client);
            }
        }
    }
}
